--[[
newEditBox
{
	strType = 'EditBox',
	strPhase = 'phLogin',
	strPanel = 'panelDefault',
	intLayer = 70,
	iPosX = 0,
	iPosY = 0,
	iSizeX = 200,
	iSizeY = 30,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 0,
			Top = 200,
			Left = 0,
			Right = 200,
			Bottom = 230,
		},
	},
	iMaxLength = 30,
	iTextID = 0,
	iCharLength = 20,
	iRed = 255,
	iGreen = 255,
	iBlue = 255,
	bPassWord = false,
};
]]

newObject
{
	strType = 'StaticImage',
	strPhase = 'phMainMenu',
	strPanel = 'panelMenu',
	intLayer = 9500,
	iPosX = 0,
	iPosY = 0,
	iSizeX = 800,
	iSizeY = 600,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 3,
			Top = 0,
			Left = 0,
			Right = 800,
			Bottom = 600,
		},
	},
};
--[[

]]
SizeX = 266;
SizeY = 97;
SingleButton, SingleButtonFocus, SingleButtonLoseFocus =
newButton
{
	strType = 'Button',
	strPhase = 'phMainMenu',
	strPanel = 'panelMenu',
	strFun = 'SingleButton',
	strFocusFunc = 'SingleButtonFocus',
	strLoseFocusFunc = 'SingleButtonLoseFocus',
	Func = 
		function()
			PMins:ChangeToPhase( 'phGame' );
			pAudio:StopMusic();
		end,
	FocusFunc = 
		function()
			pAudio:SetSoundVolume( 0, 50 );
			pAudio:PlayGameSound( 0 );
		end,
	LoseFocusFunc = NullFunc,
	intLayer = 50,
	iPosX = 161,
	iPosY = 258,
	iSizeX = SizeX,
	iSizeY = SizeY,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 3,
			Top = 600,
			Left = 0,
			Right = 0+SizeX,
			Bottom = 600+SizeY,
		},
		[2] =
		{
			PicID = 3,
			Top = 600+SizeY,
			Left = 0,
			Right = 0+SizeX,
			Bottom = 600+SizeY*2,
		},
		[3] =
		{
			PicID = 3,
			Top = 600+SizeY*2,
			Left = 0,
			Right = 0+SizeX,
			Bottom = 600+SizeY*3,
		},
	},
};
changePhaseButton, changePhaseButtonFocus, changePhaseButtonLoseFocus =
newButton
{
	strType = 'Button',
	strPhase = 'phMainMenu',
	strPanel = 'panelMenu',
	strFun = 'changePhaseButton',
	strFocusFunc = 'changePhaseButtonFocus',
	strLoseFocusFunc = 'changePhaseButtonLoseFocus',
	Func = 
		function()
			PMins:ChangeToPhase( 'phGame' );
			pAudio:StopMusic();
		end,
	FocusFunc = 
		function()
			pAudio:SetSoundVolume( 0, 50 );
			pAudio:PlayGameSound( 0 );
		end,
	LoseFocusFunc = NullFunc,
	intLayer = 50,
	iPosX = 161,
	iPosY = 355,
	iSizeX = SizeX,
	iSizeY = SizeY,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 3,
			Top = 600,
			Left = SizeX,
			Right = SizeX*2,
			Bottom = 600+SizeY,
		},
		[2] =
		{
			PicID = 3,
			Top = 600+SizeY,
			Left = SizeX,
			Right = SizeX*2,
			Bottom = 600+SizeY*2,
		},
		[3] =
		{
			PicID = 3,
			Top = 600+SizeY*2,
			Left = SizeX,
			Right = SizeX*2,
			Bottom = 600+SizeY*3,
		},
	},
};
HelpButton, HelpButtonFocus, HelpButtonLoseFocus =
newButton
{
	strType = 'Button',
	strPhase = 'phMainMenu',
	strPanel = 'panelMenu',
	strFun = 'HelpButton',
	strFocusFunc = 'HelpButtonFocus',
	strLoseFocusFunc = 'HelpButtonLoseFocus',
	Func = 
		function()
			PMins:ChangeToPhase( 'phHelp' );
			--pAudio:StopMusic();
			--pAudio:PlayMusic( 0 );			
		end,
	FocusFunc = 
		function()
			pAudio:SetSoundVolume( 0, 50 );
			pAudio:PlayGameSound( 0 );
		end,
	LoseFocusFunc = NullFunc,
	intLayer = 50,
	iPosX = 161,
	iPosY = 452,
	iSizeX = SizeX,
	iSizeY = SizeY,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 3,
			Top = 600,
			Left = SizeX*2,
			Right = SizeX*3,
			Bottom = 600+SizeY,
		},
		[2] =
		{
			PicID = 3,
			Top = 600+SizeY,
			Left = SizeX*2,
			Right = SizeX*3,
			Bottom = 600+SizeY*2,
		},
		[3] =
		{
			PicID = 3,
			Top = 600+SizeY*2,
			Left = SizeX*2,
			Right = SizeX*3,
			Bottom = 600+SizeY*3,
		},
	},
};


newObject
{
	strType = 'StaticImage',
	strPhase = 'phGame',
	strPanel = 'panelBackground',
	intLayer = 10,
	iPosX = 0,
	iPosY = 0,
	iSizeX = 800,
	iSizeY = 600,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 2,
			Top = 0,
			Left = 0,
			Right = 800,
			Bottom = 600,
		},
	},
};

--rage buttons
Size = 30;
RageAttack = 
newButton
{
	strType = 'Button',
	strPhase = 'phGame',
	strPanel = 'panelRage',
	strFun = 'RageAttack',
	strFocusFunc = '',
	strLoseFocusFunc = '',
	Func = NullFunc,
	FocusFunc = NullFunc,
	LoseFocusFunc = NullFunc,
	intLayer = 50,
	iPosX = 0,
	iPosY = 0,
	iSizeX = Size,
	iSizeY = Size,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 0,
			Top = 0,
			Left = 430,
			Right = 430+Size,
			Bottom = 0+Size,
		},
		[2] =
		{
			PicID = 0,
			Top = 0,
			Left = 430+Size,
			Right = 430+Size*2,
			Bottom = 0+Size,
		},
		[3] =
		{
			PicID = 0,
			Top = 0,
			Left = 430+Size*2,
			Right = 430+Size*3,
			Bottom = 0+Size,
		},
	},
};
RageDarkKnight = 
newButton
{
	strType = 'Button',
	strPhase = 'phGame',
	strPanel = 'panelDarkKnight',
	strFun = 'RageDarkKnight',
	strFocusFunc = '',
	strLoseFocusFunc = '',
	Func = NullFunc,
	FocusFunc = NullFunc,
	LoseFocusFunc = NullFunc,
	intLayer = 50,
	iPosX = 0,
	iPosY = 0,
	iSizeX = Size,
	iSizeY = Size,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 0,
			Top = Size,
			Left = 430,
			Right = 430+Size,
			Bottom = Size+Size,
		},
		[2] =
		{
			PicID = 0,
			Top = Size,
			Left = 430+Size,
			Right = 430+Size*2,
			Bottom = Size+Size,
		},
		[3] =
		{
			PicID = 0,
			Top = Size,
			Left = 430+Size*2,
			Right = 430+Size*3,
			Bottom = Size+Size,
		},
	},
};
ButtonReturn, ButtonReturnFocus = 
newButton
{
	strType = 'Button',
	strPhase = 'phGame',
	strPanel = 'panelReturn',
	strFun = 'ButtonReturn',
	strFocusFunc = 'ButtonReturnFocus',
	strLoseFocusFunc = '',
	Func = 
		function()
			PMins:ChangeToPhase( 'phMainMenu' );
		end,
	FocusFunc = 
		function()
			pAudio:SetSoundVolume( 0, 50 );
			pAudio:PlayGameSound( 0 );
		end,
	LoseFocusFunc = NullFunc,
	intLayer = 50,
	iPosX = 697,
	iPosY = 7,
	iSizeX = 92,
	iSizeY = 20,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 0,
			Top = 980,
			Left = 0,
			Right = 92,
			Bottom = 1000,
		},
		[2] =
		{
			PicID = 0,
			Top = 1000,
			Left = 0,
			Right = 92,
			Bottom = 1020,
		},
		[3] =
		{
			PicID = 0,
			Top = 980,
			Left = 0,
			Right = 92,
			Bottom = 1000,
		},
	},
};

newObject
{
	strType = 'StaticImage',
	strPhase = 'phGame',
	strPanel = 'panelMidDisplay',
	intLayer = 50,
	iPosX = 428,
	iPosY = 214,
	iSizeX = 300,
	iSizeY = 60,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 0,
			Top = 470,
			Left = 700,
			Right = 1000,
			Bottom = 530,
		},
		[2] =
		{
			PicID = 0,
			Top = 530,
			Left = 700,
			Right = 1000,
			Bottom = 590,
		},
		[3] =
		{
			PicID = 0,
			Top = 590,
			Left = 700,
			Right = 1000,
			Bottom = 650,
		},
	},
};

-------------------------------------------Help phase----------------------------
newObject
{
	strType = 'StaticImage',
	strPhase = 'phHelp',
	strPanel = 'panelHelp',
	intLayer = 50,
	iPosX = 0,
	iPosY = 0,
	iSizeX = 0,
	iSizeY = 0,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 4,
			Top = 0,
			Left = 0,
			Right = 800,
			Bottom = 600,
		},
		[2] =
		{
			PicID = 4,
			Top = 600,
			Left = 0,
			Right = 800,
			Bottom = 1200,
		},
		[3] =
		{
			PicID = 4,
			Top = 1200,
			Left = 0,
			Right = 800,
			Bottom = 1800,
		},
	},
};

ButtonHelpReturn, ButtonHelpReturnFocus = 
newButton
{
	strType = 'Button',
	strPhase = 'phHelp',
	strPanel = 'panelHelp',
	strFun = 'ButtonHelpReturn',
	strFocusFunc = 'ButtonHelpReturnFocus',
	strLoseFocusFunc = '',
	Func = 
		function()
			PMins:ChangeToPhase( 'phMainMenu' );
		end,
	FocusFunc = 
		function()
			pAudio:SetSoundVolume( 0, 50 );
			pAudio:PlayGameSound( 0 );
		end,
	LoseFocusFunc = NullFunc,
	intLayer = 50,
	iPosX = 697,
	iPosY = 7,
	iSizeX = 92,
	iSizeY = 20,
	bVisible = true,
	ListPL =
	{
		[1] =
		{
			PicID = 0,
			Top = 980,
			Left = 0,
			Right = 92,
			Bottom = 1000,
		},
		[2] =
		{
			PicID = 0,
			Top = 1000,
			Left = 0,
			Right = 92,
			Bottom = 1020,
		},
		[3] =
		{
			PicID = 0,
			Top = 980,
			Left = 0,
			Right = 92,
			Bottom = 1000,
		},
	},
};

